package com.tanhua.model.vo;

import com.tanhua.model.db.Options;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class OptionsVo implements Serializable {
    /*
     * id
     * */
    private String id;

    /*
     * option
     * */
    private String option;

    public static OptionsVo inint(Options options){
        OptionsVo optionsVo = new OptionsVo();
        optionsVo.setId(options.getId().toString());
        optionsVo.setOption(options.getOptionContent());
        return optionsVo;
    }
}
